package com.sc.study.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

/**
 * 考试题目对象 sc_testexam_question
 * 
 * @author sc
 * @date 2022-02-27
 */
public class ScTestexamQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 试卷编号 */
    @Excel(name = "试卷编号")
    private Long testexamid;

    /** 题目编号 */
    @Excel(name = "题目编号")
    private Long questionid;

    /** 分数 */
    @Excel(name = "分数")
    private Double score;

    // 查询参数 根据试卷名称like查询
    private String likeTestExamName;

    // 查询参数 根据题目问题查询
    private String likeQuestionTitle;

    // 试卷对象
    private ScTest scTest;

    // 题目对象
    private ScQuestion scQuestion;


    public String getLikeTestExamName() {
        return likeTestExamName;
    }

    public void setLikeTestExamName(String likeTestExamName) {
        this.likeTestExamName = likeTestExamName;
    }

    public String getLikeQuestionTitle() {
        return likeQuestionTitle;
    }

    public void setLikeQuestionTitle(String likeQuestionTitle) {
        this.likeQuestionTitle = likeQuestionTitle;
    }

    public ScTest getScTest() {
        return scTest;
    }

    public void setScTest(ScTest scTest) {
        this.scTest = scTest;
    }

    public ScQuestion getScQuestion() {
        return scQuestion;
    }

    public void setScQuestion(ScQuestion scQuestion) {
        this.scQuestion = scQuestion;
    }

    public ScTestexamQuestion() {
    }

    public ScTestexamQuestion(Long testexamid, Long questionid, Double score) {
        this.testexamid = testexamid;
        this.questionid = questionid;
        this.score = score;
    }

    public ScTestexamQuestion(Long id, Long testexamid, Long questionid, Double score) {
        this.id = id;
        this.testexamid = testexamid;
        this.questionid = questionid;
        this.score = score;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTestexamid(Long testexamid) 
    {
        this.testexamid = testexamid;
    }

    public Long getTestexamid() 
    {
        return testexamid;
    }
    public void setQuestionid(Long questionid) 
    {
        this.questionid = questionid;
    }

    public Long getQuestionid() 
    {
        return questionid;
    }
    public void setScore(Double score)
    {
        this.score = score;
    }

    public Double getScore()
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testexamid", getTestexamid())
            .append("questionid", getQuestionid())
            .append("score", getScore())
            .toString();
    }
}
